﻿namespace OboutInc.ImageZoom
{
    using System;
    using System.Web.UI.Design;
    using System.Web.UI.Design.WebControls;

    [SupportsPreviewControl(true)]
    public class ImageZoomDesigner : DataBoundControlDesigner
    {
        public override string GetDesignTimeHtml()
        {
            OboutInc.ImageZoom.ImageZoom component = (OboutInc.ImageZoom.ImageZoom) base.Component;
            return string.Format("<img src='{0}' width='{1}' />", component.ImageUrl, component.ThumbnailWidth);
        }

        public override bool AllowResize
        {
            get
            {
                return false;
            }
        }
    }
}

